package com.xhs.service;

import com.xhs.dto.request.SendHttpParam;
import com.xhs.message.ReturnResult;

/**
 * @desc:
 * @projectName: http-test-api
 * @author: xhs
 * @date: 2024-06-10 14:45
 * @version: JDK 1.8
 */
public interface HttpService {

    /**
     * 发送Get请求 无参
     *
     * @return ReturnResult<Object>
     */
    ReturnResult<Object> sendGet();

    /**
     * 发送Get请求 有参
     *
     * @param httpCode 接口编号
     * @param httpUrl  接口地址
     * @return ReturnResult
     */
    ReturnResult<Object> sendGetParam(String httpCode, String httpUrl);

    /**
     * 发送post请求 无参
     *
     * @return ReturnResult
     */
    ReturnResult<Object> sendPost();


    /**
     * 发送post请求 有参 json格式
     *
     * @param param 入参
     * @return ReturnResult
     */
    ReturnResult<Object> sendPostJsonParam(SendHttpParam param);
}
